package com.aihwcm.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Aihappendixes entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "aihappendixes", catalog = "aihwcmdb")
public class Aihappendixes implements java.io.Serializable {

	// Fields

	private Integer appendixid;
	private Aihdocuments aihdocuments;
	private String appendixname;
	private String appendixpath;
	private String appendixstyle;

	// Constructors

	/** default constructor */
	public Aihappendixes() {
	}

	/** minimal constructor */
	public Aihappendixes(String appendixname) {
		this.appendixname = appendixname;
	}

	/** full constructor */
	public Aihappendixes(Aihdocuments aihdocuments, String appendixname,
			String appendixpath, String appendixstyle) {
		this.aihdocuments = aihdocuments;
		this.appendixname = appendixname;
		this.appendixpath = appendixpath;
		this.appendixstyle = appendixstyle;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "appendixid", unique = true, nullable = false)
	public Integer getAppendixid() {
		return this.appendixid;
	}

	public void setAppendixid(Integer appendixid) {
		this.appendixid = appendixid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "docid")
	public Aihdocuments getAihdocuments() {
		return this.aihdocuments;
	}

	public void setAihdocuments(Aihdocuments aihdocuments) {
		this.aihdocuments = aihdocuments;
	}

	@Column(name = "appendixname", nullable = false, length = 100)
	public String getAppendixname() {
		return this.appendixname;
	}

	public void setAppendixname(String appendixname) {
		this.appendixname = appendixname;
	}

	@Column(name = "appendixpath", length = 100)
	public String getAppendixpath() {
		return this.appendixpath;
	}

	public void setAppendixpath(String appendixpath) {
		this.appendixpath = appendixpath;
	}

	@Column(name = "appendixstyle", length = 20)
	public String getAppendixstyle() {
		return this.appendixstyle;
	}

	public void setAppendixstyle(String appendixstyle) {
		this.appendixstyle = appendixstyle;
	}

}